home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / kzap22c.zip / KZAP.DOC < prev   
Text File  |  1991-11-03  |  10KB  |  221 lines

  1. KILL-O-ZAP  The Ultimate Zapper
  2. ===============================
  3.  
  4. PROGRAM DESCRIPTION
  5. KILL-O-ZAP Patches Disks, Files and Memory.  It is also resident, thanks
  6. to Lane Ferris' memory resident code for Turbo Pascal.  You can also zap
  7. interactively with KZAP.COM or in "Batch" mode with KZBAT.COM.
  8.  
  9. Basically you can use these programs to generally muck things up royally.
  10. So please be carefull.  If you have edit-mode in KZAP.COM toggled OFF, then
  11. things should be safe, but I'm not going to guarantee anything.  If you have
  12. EDIT-MODE toggled ON, then every change you make is saved, AS SOON AS YOU
  13. MOVE OUT OF THE CURRENT BLOCK or exit KZAP, (and sometimes before). You
  14. should act as if ALL changes that you make are immediate and permanent,
  15. because they essentially are.  However, if you are entering a number in a
  16. hex cell, and you've entered the first character, but not the second, then
  17. you can hit ESCAPE, and the old number will appear.  Once you've entered
  18. both characters, though, it's in there.
  19.  
  20. KILL-O-ZAP Will even patch hidden and read-only files.  It does this by
  21. changing the files' attributes before it loads them. Then, after it is
  22. finished with that file, it changes its attribute bits back to their
  23. original values. However, if you are zapping a file in memory resident
  24. mode, and if you never UnLoad it (F5), then the old attributes go Bye-Bye,
  25. and the file is now just a normal Read-Write Non-System File.  If not in
  26. memory resident mode, then when you finish out of the program (w/ ESC),
  27. then all changes in the current block are written, the file is closed and
  28. the original attributes are restored.  So when not in memory resident mode,
  29. you can always count on having the original file attributes retained.
  30.  
  31.  
  32. PROBLEMS
  33. As of right now, the bug in the disk zapping feature is still there, this
  34. means that disk zapping is still disabled when memory resident.  Sorry.
  35. Hopefully, this is not a serious probelm and I'll be able to solve it.
  36.  
  37.  
  38. THE VIEW FEATURE
  39. So you don't have a calculator handy to convert the data?  Use the view
  40. feature.  One point to make,  Integer and Real views are calculated with the
  41. most significant byte being on the right, because this is the standard
  42. method of representation in DOS.  But to view Bytes in Decimal or Binary,
  43. the bytes are show left to right, because this helps prevent the horrible
  44. affliction of Programmer's Cross-Eyes.  Actually it's because you are
  45. viewing more than one value, (i.e. each byte represents a separate
  46. calculated value) whereas in the integer and real views, a number of bytes
  47. represent one value.  If this section doesn't mean anything to you, then
  48. don't read it.  (Also, the Real View, is sort of a quick hack;  it only
  49. shows the bytes as a Turbo Pascal Real Number).
  50.  
  51.  
  52. HINTS
  53. Try loading two files in KZAP at once and comparing them.  I have used this
  54. technique many times to crack games that save the game state in files. I
  55. would play the game, save it, rename it, then I would go back to the game,
  56. make a small move of some sort, then save it a second time.  Then I would
  57. compare the two saved games.  It is often easy to distinguish things like
  58. scores, hit points, amounts, sizes, etc.  Then all you do is patch the file
  59. so that your character, or whatever is stronger than King Kong and your on
  60. your way...
  61.  
  62. Also, load your favorite program into KZAP, then use the Ascii word search
  63. feature, see what the program is capable of doing.  Often the text strings
  64. in an executable file give you a really good idea of what's going on in the
  65. code.
  66.  
  67. You can also use the save blocks feature of KZAP to take snapshots of disks,
  68. sections of files, or RAM, for future fun and games.
  69.  
  70. Use the recording feature of KZAP to "save" a ZAP.  Then if you ever have
  71. need to perform the same zap again, it's as easy as 123.  (hee hee).  Just
  72. replay the ZAP file produced by the recording with the KZBAT.COM program.
  73.  
  74.  
  75. COLORS
  76. So you don't like the colors I use?  Well, there's no accounting for taste,
  77. but if you really want to change them, well o.k., here's how: There are two
  78. ways to do this:  first, you could do it manually, and the complete
  79. instructions are given below for zapping KZAP.COM and KZBAT.COM.  Or you
  80. could use KZBAT to replay these files:
  81.  
  82.                             For which
  83. Zap File      Target File   Monitor
  84. ============  ============  =========
  85. KZAPCLR.ZAP   KZAP.COM      Color
  86. KZAPMONO.ZAP  KZAP.COM      Monochrome
  87. KZBATCLR.ZAP  KZBAT.COM     Color
  88. KZBATMNO.ZAP  KZBAT.COM     Monochrome
  89.  
  90.  
  91. Color locations in KZAP.COM V2.2C:
  92.  
  93. TEXT CONSTANT   (ORIGINAL COLOR)  HEX OFFSET*  DESCRIPTION
  94. -----------------------------------------------------------
  95. TitleColor       Yellow    (0E)    3A60        Top line Title
  96. RevTitleColor    RevLtGray (70)    3A61
  97. ToplineColor     White     (0F)    3A62        Where it says OFFSET
  98. NameColor        Yellow    (0E)    3A63        Disk/File Name
  99. RevNameColor     RevLtGray (70)    3A64
  100. ViewColor        Yellow    (0E)    3A65        View Box
  101. CellColor        Yellow    (0E)    3A66        A data Cell
  102. RulerColor       RevLtGray (70)    3A67        The Ruler Line
  103. ModeLineColor    Yellow    (0E)    3A68        Edit-Mode is ON, etc.
  104. PromptColor      RevLtGray (70)    3A69        The Text that prompts
  105. HlpLineColor     RevLtGray (70)    3A6A        Two lines of help at bottom
  106. BlkNoColor       Yellow    (0E)    3A6B        The Block Numbers
  107. HelpTxtColor     Yellow    (0E)    3A6C        Color For help screen text
  108. HelpRevColor     RevLtGray (70)    3A6D
  109. HelpEndColor     Yellow    (0E)    3A6E        last line of help screen
  110. ByeByeColor      LightMagenta (0D) 3A6F        Th-Th-That's All Folks!
  111.  
  112.  
  113. * These are the locations as of Version 2.2C.  If I come out with a new
  114. version, The locations may change, but they will always stay the same
  115. relative to each other.  So you could search for the first three colors (0E
  116. 70 0F), and when you find them, see if the rest of the colors follow in the
  117. proper order (this is how I found their locations).  But they probably won't
  118. change anyway, because they're all the way up front in my program, and it's
  119. a pain for me if they do change, because then I'll have to rewrite this
  120. stupid chart.
  121.  
  122.  
  123. Color locations in KZBAT.COM V1.0:
  124.  
  125. TEXT CONSTANT   (ORIGINAL COLOR)  HEX OFFSET*  DESCRIPTION
  126. -----------------------------------------------------------
  127. TitleColor         RevLtGray        2C9F       The Title
  128. MainWndwColor      Yellow           2CA0       Main Window Text
  129. SubWndwColor       White            2CA1       Running Instructions
  130. DirectoryColor     White            2CA2       Directoy window/name
  131. ErrorColor         Yellow           2CA3       Error Window
  132. FilesColor         Yellow           2CA4       Zap + Target Window
  133. MenuColor          Yellow           2CA5       Zap Files Menu
  134. ZappingColor       Yellow           2CA6       Zapping Window
  135.  
  136.  
  137. Below are some color values that you can use in the above locations to make
  138. your KILL-O-ZAP prettier ...
  139.  
  140. Some Color Values:
  141. --------------------------
  142.   COLOR        HEX VALUE
  143.   Black        =     00
  144.   Blue         =     01
  145.   Green        =     02
  146.   Cyan         =     03
  147.   Red          =     04
  148.   Magenta(YUK) =     05
  149.   Brown(Ick)   =     06
  150.   LightGray    =     07
  151.   DarkGray     =     08
  152.   LightBlue    =     09
  153.   LightGreen   =     0A
  154.   LightCyan    =     0B
  155.   LightRed     =     0C
  156.   LightMagenta =     0D
  157.  *Yellow       =     0E
  158.  *White        =     0F
  159.  
  160.  *RevLtGray    =     70
  161.  
  162. [RevLtGray, like any reverse color, is obtained by multiplying any of the
  163. basic colors above in the range:  1 - 7 by hex 10, which makes things easy
  164. because the color values above are given in hex, so the reverse colors are
  165. in the range 10 - 70 hex (every multiple of hex 10).  If you multiply the
  166. colors in the range 8 - F by hex 10, then you get a blinking color].
  167.  
  168. *Shows up nicely in monochrome.
  169.  
  170. To change the colors, all you have to do is zap KZAP.COM and change the
  171. colors to suit your taste.
  172.  
  173. INSTRUCTIONS FOR MANUAL ZAPPING
  174. ========================================================================
  175. Type:  KZAP KZAP.COM   (at the DOS prompt).
  176. When the program comes up, you hit the F8 key (Goto Byte Offset).
  177. It will ask you for the target offset and you type:  3A61   (hit ENTER)
  178. Then you hit the F10 key to Toggle EDIT-MODE ON.
  179. Then you start changing bytes.  (Use the keyboard, writing on the screen
  180.   with a bic pen doesn't work).
  181. It's not a good idea to change bytes outside of the given range.
  182. You might want to do this on a COPY of KZAP.
  183.  
  184.  
  185. REVISIONS
  186. 2.2B
  187. Lots of annoying little bugs were cleaned up between 2.2 and 2.2B. Some of
  188. the little display glitches were also cleaned up; particularly dealing with
  189. the View.  Also, I took out the ascii view.  This was a holdover from KILL-
  190. O-ZAP'S earlier incarnation - Dumpat, where it was more obviously needed.  I
  191. also added the save blocks feature, and a bit more error checking.
  192.  
  193. 2.2C
  194. Recording Feature added!  Record changes to a file with Shft-F6 and play
  195. them back with KZBAT.COM.
  196.  
  197.  
  198. SUPPORT, ETC.
  199. If you want the source code, it's $20, and I will send you a diskette with
  200. a copy of the complete Turbo Pascal source code, plus the memory resident
  201. code by Lane Ferris that makes KZAP resident.  You will get complete
  202. instructions on how to compile it and fool the Turbo Pascal Intr() routine
  203. into properly executing the absolute disk sector read and write interrupts:
  204. 25H and 26H, (which are nasty enough to leave crap on the stack after
  205. exiting).
  206.  
  207. If you want support, that's $10 per letter answered.  Hey, this is public
  208. domain software,  there's no big company behind it to hire people to sit
  209. around all day and answer questions, it's just little ol' me.  So, if you
  210. want to get an answer, stick a $10 check in your envelope.
  211.  
  212.  
  213. My address:
  214.  
  215.                              Doug Bagley
  216.                              207 Edgehill Rd.
  217.                              Merion, PA 19066
  218.  
  219.  
  220. Happy Zapping,
  221. Doug